package com.bw.user_module.edtuser;

import com.bw.user_module.user.UserEntity;

import java.util.List;

import io.reactivex.Observable;
import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;

public interface ApiService {

    //修改用户信息
    @POST("userCenter/editUser")
    Observable<UserEntity>requestUpdateUser(@Body RequestBody body);

    //上传用户头像
    @Multipart
    @POST("fileUpload")
    Observable<UploadHeadEntity>requestUpload(@Part List<MultipartBody.Part>parts);
}
